using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WeaponPickup : MonoBehaviour
{
    public GameObject weaponPrefab;
    public Weapon weapon { get; set; }
    private SpriteRenderer spriteRenderer;

    private void Awake()
    {
        spriteRenderer = GetComponent<SpriteRenderer>();
    }

    private void Start()
    {
        weapon = weaponPrefab.GetComponent<Weapon>();
        spriteRenderer.sprite = weapon.weaponIcon;
    }
}
